package com.house.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.house.common.utils.PageUtils;
import com.house.common.utils.Query;
import com.house.system.dao.RegionalDao;
import com.house.system.entity.TbAreasystem;
import com.house.system.service.RegionalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("RegionalService")
@SuppressWarnings("all")
public class RegionalServiceImpl extends ServiceImpl<RegionalDao, TbAreasystem> implements RegionalService{

   @Autowired
   private RegionalDao regionalDao;
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TbAreasystem> page = this.page(
                new Query<TbAreasystem>().getPage(params),
                new QueryWrapper<TbAreasystem>()
        );

        return new PageUtils(page);
    }



}
